package com.jsh.erp.api;

import com.jsh.erp.service.log.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/remote/api/log")
public class LogRemote {
    @Autowired
    private LogService logService;

    @GetMapping("/insertLog")
     public  void insertLog(@RequestParam("moduleName") String moduleName, @RequestParam("content")String content, HttpServletRequest request)throws Exception{
        logService.insertLog(moduleName,content,request);
    }
}
